<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="dao.*"%>
<%@ page import="service.*"%>
<%@ page import="java.util.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/frame.css" rel="stylesheet" type="text/css" />
<title>错误！！</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">


</head>

<body>

<!-- 页头 左边栏 -->
<%@ include file="/common/header.jsp" %>
<%@ include file="/common/left-nav.jsp" %>
<script></script>

<!-- 此处添加本页代码 -->
<div class="mainBlock" id="mainBlock">
	错误！！<%=request.getAttribute("message") %>
	<%if(request.getAttribute("message").equals("未登录")) {%>
	<script>
		var clock=5;
		var cElement=document.createElement("div");
		document.getElementById("mainBlock").appendChild(cElement);
		var flag=setInterval("countdown()",1000);
		function countdown() {
			if(clock==0) {
				clearInterval(flag);
				window.location='login.jsp';
			}
			cElement.innerHTML=clock;
			clock--;
		}
	</script>
	<%} %>
</div>

<!-- 页脚 -->
<%@ include file="/common/footer.jsp" %>
</body>
</html>